package com.xuecheng.content.service;

import com.xuecheng.content.model.dto.CourseTeacherDto;
import com.xuecheng.content.model.dto.EditCourseTeacherDto;

import java.util.List;

public interface CourseTeacherService {
    /**
     * 根据课程id查询教师信息
     *
     * @param courseId 课程id
     * @return
     */
    List<CourseTeacherDto> listCourseTeacher(Long courseId);

    /**
     * 新增或者修改教师信息
     *
     * @param editCourseTeacherDto 新增教师信息
     * @param companyId            机构id
     * @return
     */
    CourseTeacherDto insertOrUpdate(EditCourseTeacherDto editCourseTeacherDto, Long companyId);

    /**
     * 删除教师信息
     *
     * @param courseId 课程id
     * @param id       教师id
     */
    void deleteCourseTeacher(Long courseId, Long id, Long companyId);
}
